package com.blb.service.impl;

import com.blb.entity.BrandType;
import com.blb.mapper.BrandTypeMapper;
import com.blb.service.IBrandTypeService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author txy
 * @since 2019-07-10
 */
@Service
public class BrandTypeServiceImpl extends ServiceImpl<BrandTypeMapper, BrandType> implements IBrandTypeService {

    @Autowired
    private BrandTypeMapper brandTypeMapper;

    /**
     * 通过brandID获取商品类别与分类对象集合
     */
    @Override
    public List<BrandType> getBrandTypeByBrand(String BrandId) {
        List<BrandType> BrandTypeList = brandTypeMapper.selectList(new QueryWrapper<BrandType>().eq("brand_id", BrandId));
        return BrandTypeList;
    }

}
